package o;

import android.view.View;

public abstract class ol extends nt {
    private static final String[] ॱ = new String[]{"android:visibilityPropagation:visibility", "android:visibilityPropagation:center"};

    public void ˏ(nx nxVar) {
        View view = nxVar.ॱ;
        Object obj = (Integer) nxVar.ˊ.get("android:visibility:visibility");
        if (obj == null) {
            obj = Integer.valueOf(view.getVisibility());
        }
        nxVar.ˊ.put("android:visibilityPropagation:visibility", obj);
        obj = new int[2];
        view.getLocationOnScreen(obj);
        obj[0] = obj[0] + Math.round(view.getTranslationX());
        obj[0] = obj[0] + (view.getWidth() / 2);
        obj[1] = obj[1] + Math.round(view.getTranslationY());
        obj[1] = (view.getHeight() / 2) + obj[1];
        nxVar.ˊ.put("android:visibilityPropagation:center", obj);
    }

    public String[] ॱ() {
        return ॱ;
    }

    public int ॱ(nx nxVar) {
        if (nxVar == null) {
            return 8;
        }
        Integer num = (Integer) nxVar.ˊ.get("android:visibilityPropagation:visibility");
        if (num == null) {
            return 8;
        }
        return num.intValue();
    }

    public int ˋ(nx nxVar) {
        return ˋ(nxVar, 0);
    }

    public int ˎ(nx nxVar) {
        return ˋ(nxVar, 1);
    }

    private static int ˋ(nx nxVar, int i) {
        if (nxVar == null) {
            return -1;
        }
        int[] iArr = (int[]) nxVar.ˊ.get("android:visibilityPropagation:center");
        if (iArr == null) {
            return -1;
        }
        return iArr[i];
    }
}
